package com.sunkyc.framework.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunkyc.framework.system.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author sunkyc
 * @since 2022-05-31
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select user_id,dept_id,user_name,nick_name,email,phonenumber,sex,avatar,pwd,state from sys_user where user_name = #{username}")
    SysUser getUserInfoByUserName(@Param("username") String username);
}
